<!DOCTYPE html>
<html dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
    <head>
        <?php osc_current_web_theme_path('head.php') ; ?>
        <meta name="robots" content="index, follow" />
        <meta name="googlebot" content="index, follow" />
        <script type="text/javascript">
            $(document).ready(function() { 
                $('.nobubble').click(function(event){
                    event.stopImmediatePropagation();
                });
            });
        </script>
    </head>
    <body>
        <?php osc_current_web_theme_path('header.php') ; ?>
       
        <div class="container margin-top-10" style="display:none;">
            <?php twitter_show_flash_message() ; ?>
        </div>
        <!-- content -->
        <div class="container container-fluid" style="margin-top:10px;margin-bottom:10px;">
            <!-- <div class="content-right" >
				<?php //osc_current_web_theme_path('ads.php') ; ?>	
                <div class="row">
                    <div class="span4 columns">
                        <h3><?php _e('Pages', 'twitter_bootstrap') ; ?></h3>
                        <ul class="unstyled">
                            <?php /*while( osc_has_static_pages() ) { */?>
                            <li><a href="<?php /*echo osc_static_page_url() ; ?>"><?php echo osc_static_page_title() ; */?></a></li>
                            <?php /* } */?>
                            <li><a href="<?php /* echo osc_contact_url(); ?>"><?php _e('Contact', 'twitter_bootstrap') ; */ ?></a></li>
                        </ul>
                    </div>
                </div>         
            </div>-->
            <div style="float:left;width:657px;">
                <?php osc_current_web_theme_path('inc.search.php') ; ?>
                <div >
                <div id="numVehicles" >                
                    <h4>
                        <span style="margin-left:4px;"><?php echo __('Publish your Ad', 'twitter_bootstrap') ;?> </span></h4>
                </div>
                <div class="alert alert-normal" style="width:375px;float:right;padding:18px;">                
                    <div id="h1home">
                        <h1><?php echo __('Sell ​​your used vehicles', 'twitter_bootstrap') ;?></h1>
                    </div>
                    <div id="h2home" class="clearfix">
                       <p style="font-size:14px;">
                           <?php _e("You can publish all types of used industrial vehicles, trucks, machinery or vans.", 'twitter_bootstrap') ; ?>
                       </p>
                       <p style="display:inline;">
                           <i class="icon-chevron-right" title="<?php _e("We help you to sold your vehicle", 'twitter_bootstrap') ; ?>"></i>
                           <h2> <?php _e("Free and Unlimited Ads", 'twitter_bootstrap') ; ?></h2>
                       </p>
                       
                       <p style="font-size:14px;">
                           <a href="<?php echo osc_item_post_url(); ?>"><strong> <?php _e("Publish your Ad here", 'twitter_bootstrap') ; ?></strong></a>
                       </p>
                    </div>
                </div>
            </div>
                <div class="content-left">

                    <div class="container-left latest_ads" style="float:left;width:650px;margin-top:20px;">
                    <!-- <h3><?php //_e('Latest Vehicles', 'twitter_bootstrap') ; ?></h3>-->
                     <h4 class="doubleline"><span><?php _e('Latest Vehicles', 'twitter_bootstrap') ;?></span></h4> 		
                    <?php if( osc_count_latest_items() > 0) { ?>

                        <!--<div class="line_home_title" style="border:0;">  
                                <span style="float:right;">
                                    <img src="<?php //echo osc_current_web_theme_url("images/clave.png") ?>" width="31" />
                                </span>
                        </div>-->
                        <?php $itemCounter = 0;
                        while ( osc_has_latest_items() ) { ?>
                        <div class="latest_item" onclick="location.href='<?php echo osc_item_url(); ?>'" 
                            <?php //if($itemCounter < 11) { echo "style='border-bottom: 1px dotted #cccccc;'"; } ?>>                       
                                          <div class="photo">
                                                 <a href="<?php echo osc_item_url() ; ?>" class="nobubble">
                                                <?php if( osc_count_item_resources() ) { ?>

                                                        <img src="<?php echo osc_resource_thumbnail_url() ; ?>" width="140px" height="100px" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>" />

                                                <?php } else { ?>							
                                                sin fotos
                                                <?php } ?>
                                                 </a>
                                        </div>
                            <div class="description">
                                <?php if (price_format(osc_item_formated_price()) != "") { ?>
                                <span id="pricehome"><?php echo price_format(osc_item_formated_price()) ; ?></span>
                                <?php } ?>
                                <h2><?php if( osc_price_enabled_at_items() && price_format(osc_item_formated_price()) != "" ) { ?> 

                                    <?php } ?>
                                    <a href="<?php echo osc_item_url() ; ?>" class="nobubble"> 
                                        <?php echo osc_highlight(strip_tags(osc_item_title()), 24); ?></a>
                                    <?php //if(strlen(osc_item_title()) < 12) echo "<br/>"; ?>
                                    <br/>
                                    <!--<span class="label grey2" style="position: absolute;top: 88%; padding: 0 3px;width:90%;text-align:center;line-height:14px;">
                                        <?php //echo osc_item_category(); ?></span> 
                                        <?php //if( osc_item_is_premium() ) { ?> <span class="label success"><?php //_e('Premium', 'twitter_bootstrap');  ?></span><?php //} ?>
                                    -->
                                 </h2>                      

                            </div>
                        </div>
                        <?php $itemCounter++; } ?>
                        <?php if(false && osc_count_latest_items() == osc_max_latest_items() ) { ?>
                        <div class="row show-all-ads">
                            <div class="span12 columns">
                                <a class="btn primary" href="<?php echo osc_search_show_all_url();?>"><strong><?php _e("See all offers", 'twitter_bootstrap') ; ?> &raquo;</strong></a>
                            </div>
                        </div>
                        <?php } ?>
                    <?php } ?>
                    </div>
                </div>
            </div>
            <div style="float:right;">
                 <?php osc_current_web_theme_path('ads.php') ; ?>                
                <div class="social_links well-search">
                    <?php  socialLinks(); ?>
                </div>            
<!--                <div class="trovit well-search">
                    <p> <?php //_e('We are Trovit partners', 'twitter_bootstrap') ; ?></p>
                    <a href='http://www.trovit.es' target='_blank'>
                     <img src="<?php //echo osc_current_web_theme_url('images/trovit.png') ; ?>" alt="mercatrucks trovit" width="110" />
                    </a>
                </div>-->
            </div>
            
        </div>
		
        <?php osc_current_web_theme_path('footer.php') ; ?>
    </body>
</html>